<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Checkpoint')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-checkpoint" class="form-control" name="row[checkpoint]" type="text" value="{$row.checkpoint|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="" id="positionid" value="{$row.position_id}">
            <input id="c-name" data-rule="required" data-source="manage/checkpoint/category" data-params='{"position_id":"{$row.position_id}"}' class="form-control selectpage" name="row[position]" type="text" value="row[position]">

        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Pointpic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[pointpic]" type="text" value="{$row.pointpic|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[is_pic]"><input   name="row[is_pic]" type="radio" value="2"  {if condition="$row.is_pic eq 2"}checked{/if}> 需要</label>
                <label for="row[is_pic]"><input   name="row[is_pic]" type="radio" value="1"  {if condition="$row.is_pic eq 1"}checked{/if}> 不需要</label>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]"><input   name="row[status]" type="radio" value="1"  {if condition="$row.status eq 1"}checked{/if}> 正常</label>
                <label for="row[status]"><input   name="row[status]" type="radio" value="2"  {if condition="$row.status eq 2"}checked{/if}> 禁用</label>
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
